package tech.kunyuan.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tech.kunyuan.utils.ThreadUtils;

/**
 * Description:
 *
 * @Author: ky
 * DateTime: 2022-10-21 10:56
 */
@RestController
@RequestMapping("/thread")
public class ThreadController {

    @GetMapping
    public void m(){
        ThreadUtils threadTest = new ThreadUtils();
        Thread t1 = new Thread(threadTest);
        Thread t2 = new Thread(threadTest);
        Thread t3 = new Thread(threadTest);
        Thread t4 = new Thread(threadTest);
        Thread t5 = new Thread(threadTest);

        t1.start();
        t2.start();
        t3.start();
        t4.start();
        t5.start();
    }

}
